<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">


	<div style="text-align: center;">
		<h:form id="form">
			<h2>Zarejestruj się</h2>

				<h:panelGrid columns="2" style="margin: 0 auto; ">

						

						
						
						<h:outputText value="Login" />
						<h:inputText value="#{creationUserBean.login}" />
				

						<h:outputLabel value="Hasło"></h:outputLabel>
						<h:inputSecret value="#{creationUserBean.password}"></h:inputSecret>
						
							<h:outputLabel value="Powtórz hasło"></h:outputLabel>
						<h:inputSecret value="#{creationUserBean.reppassword}"></h:inputSecret>
			
			
						<h:outputText value="Imie" />
						<h:inputText value="#{creationUserBean.name}" />
		


						<h:outputText value="Nazwisko" />
						<h:inputText value="#{creationUserBean.surname}" />
		

						<h:outputText value="Firma" />
						<h:inputText value="#{creationUserBean.company}" />
	
				
						<h:outputText value="Mail" />
						<h:inputText value="#{creationUserBean.email}" />
				

				
						<h:outputText value="Newsletter" />
						<h:selectBooleanCheckbox value="#{creationUserBean.newsletting}"
							style="float:left;" />
			
				</h:panelGrid>

				<h:outputLabel id="error" escape="false" value="#{creationUserBean.errorInfo}" style="color:red; font: 12px arial;font-weight: bold;"/> 
				<h:commandButton value="Wyślij"
					action="#{creationUserBean.navigation}" reRender="error,form">
				</h:commandButton>
		</h:form>
		</div>


</ui:composition>